﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace space_scavenger
{
    class Enemy : Entity
    {
        private int health;
        private int attackPower;

        public int Health
        {
            get
            {
                return health;
            }
            set
            {
                health = value;
            }
        }

        public int AttackPower
        {
            get
            {
                return attackPower;
            }
            set
            {
                attackPower = value;
            }
        }

        public Enemy(Vector2 position, Vector2 startingVelocity, Rectangle hitbox,
            Texture2D image, int health, int armor, int attack)
            : base(position, startingVelocity, hitbox, image)
        {
            Health = health;
            AttackPower = attack;
        }

        public void TakeDamage(int damage)
        {
            health -= damage;
        }

        public Boolean IsDead()
        {
            if (health <= 0)
                return true;
            return false;
        }

        public override void Update(InputState state, GameTime gameTime)
        {
            base.Update(state, gameTime);
        }

    }
}
